package com.ruoyi.driver.order.controller;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.passenger.order.ro.GetHistoricalOrderParam;
import com.ruoyi.passenger.order.service.ITOrderService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 驾驶员端订单Controller
 *
 * @author ruoyi
 * @date 2021-12-01
 */
@RestController
@Api(tags = "驾驶员端历史订单")
public class DriverOrderController extends BaseController {
    @Autowired
    private ITOrderService tOrderService;

    /**
     * 驾驶员端历史订单
     *
     * @param param
     * @return
     */
    @ApiOperation("历史订单")
    @GetMapping("/dlsdd")
    public TableDataInfo selectHistoricalOrder(GetHistoricalOrderParam param) {
        startPage();
        return getDataTable(tOrderService.selectHistoricalOrder(param,getLoginUser().getUsername()));
    }
}
